<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上下布局div独立滚动条</title>
    <style>
        .container {
            display: flex;
            height: 200px;
        }
        .top {
            flex: 1;
            overflow-y: auto;
        }
        .bottom {
            flex: 1;
            overflow-y: auto;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="top">
            <p>这里是顶部内容，可以滚动查看所有内容。</p>
            <!-- 更多内容 -->
        </div>
        <div class="bottom">
            <p>这里是底部内容，可以滚动查看所有内容。</p>
            <!-- 更多内容 -->
        </div>
    </div>
</body>
</html>
